#region Copyright Jonathan Quiros

//	
// All rights are reserved. Reproduction or transmission in whole or in 
// part, in any form or by any means, electronic, mechanical or otherwise, 
// is prohibited without the prior written consent of the copyright owner.
//
// Filename: XslHelper.cs
//

#endregion

using System.Text;

namespace Novagoal.Utils
{
    public class XslHelper
    {
        #region CONSTANTS

        private const string HEADER = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><title></title></head><body>";
        private const string FOOTER = "</body></html>";

        #endregion

        #region PROPERTIES

        

        #endregion

        #region PUBLIC METHODS

        public string GetActivationMail(string fullname, string link)
        {
            var builder = new StringBuilder(HEADER);

            builder.AppendFormat("<p>Welcome to <b>NovaGoal</b> <i>{0}</i>,</p><br />", fullname);
            builder.AppendFormat("<p>Your account is currently NOT active. Please click <a href='{0}' >Click Here</a> to activate your account now.</p>", link);
            builder.AppendFormat("<p>If the link above did not work, copy and paste the following link into your browser</p><p>{0}</p><br />", link);
            builder.Append("<p>Please feel free to get in contact with us to address any questions or request for support.<br />Regards,</p>");
            
            builder.Append(FOOTER);
            return builder.ToString();
        }

        #endregion

        #region PRIVATE METHODS



        #endregion

        public string GetJoinRequest(string ownerFullName, string requesterFullName, string requesterEmail, string partyName, string link)
        {
            var builder = new StringBuilder(HEADER);

            builder.AppendFormat("<p>Hi <i>{0}</i>,</p><br />", ownerFullName);
            builder.AppendFormat("<p>The user <i>{0} ({1})</i> wants to join your party <b>{2}</b>.", requesterFullName, requesterEmail, partyName);
            builder.AppendFormat("<p>To accept please go to the <a href='{0}' >Home</a> of you party, and include the new member</p></p>", link);

            builder.Append(FOOTER);
            return builder.ToString();
        }
    }
}